package thread3;

public class DameThread extends Thread {
	@Override
	public void run() {
		while (true) {
			System.out.println("这是守候线程！");
		}
	}

	public static void main(String[] args) {
		DameThread t = new DameThread();
		t.setDaemon(true);
		t.start();
		System.out.println("主线程结束了！");
	}
}
